package hsp.admin.app.system.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import hsp.admin.app.base.po.BasePO;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;
import lombok.EqualsAndHashCode;

@Schema(description = "码组表")
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("system_dict")
public class DictPO extends BasePO {

    @Schema(description = "主键")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    @Schema(description = "编码", example = "Status")
    @NotBlank
    @TableField("code")
    private String code;

    @Schema(description = "名称", example = "状态")
    @NotBlank
    @TableField("name")
    private String name;

    @Schema(description = "状态", example = "1")
    @NotBlank
    @TableField("status")
    private String status;

    @Schema(description = "备注")
    @TableField("remark")
    private String remark;

}
